window.EcExtension?.ready?.(() => {
    if (window.ecodeSDK && location.hash.startsWith('#/main/workflow/req')) {
        window.EcExtension.Menus.register('显示隐藏内容', () => {
            const main = document.querySelector('table.excelMainTable')
            // 隐藏单元格
            main?.querySelectorAll?.('td>div[style*="display: none;"]')?.forEach?.((el: HTMLElement) => {
                el.style.display = '';
            })

            // 隐藏行
            const eles = main?.querySelectorAll?.('tr[style*="display: none"], tr[style*="display:none"], tr[style*="display:none;"], tr[display="none"]');
            eles?.forEach?.((el: HTMLElement) => {
                el.style.display = '';
            });
        })
    }
})